home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 678 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: newsfeed.tip.net!dataphone!newsmaster
  2. From: skorpio@dataphone.se (Jarmo Paavilainen)
  3. Newsgroups: comp.lang.c,comp.std.c,finet.atk.kielet.c
  4. Subject: TYPEDEF and Watcom C++ 10.5
  5. Date: 31 Mar 1996 12:32:59 GMT
  6. Organization: Dataphone Communication Networks
  7. Distribution: world
  8. Message-ID: <4jlu1r$cs7@nic.dataphone.se>
  9. Reply-To: skorpio@dataphone.se
  10. NNTP-Posting-Host: nikson.dataphone.se
  11. X-Newsreader: NeoLogic News for OS/2 [version: 4.5 YO Beta]
  12.  
  13.  
  14. typedef struct
  15. {
  16. WORD    CheckSum;
  17. WORD    Version;
  18. BYTE    PatchLevel;
  19. BYTE    Name[21];
  20. WORD    MarkerVersion;
  21. }VERSION_TAG_STRUCT;
  22.  
  23. Shouldn't sizeof(VERSION_TAG_STRUCT) always result in 28. By other words
  24. shouldn't WORD always be 16 bits and BYTE 8 bits.
  25.  
  26. If so why does my compiler claim that sizeof(VERSION_TAG_STRUCT) == 34.
  27. All this in 32 bit OS/2 PM and Watcom C++ 10.5
  28.  
  29. Take care,
  30. Skorpio
  31. _________________________________________________________________________
  32.  Jarmo Paavilainen, Skorpio                         skorpio@dataphone.se
  33.  Sweden                                 http://www.dataphone.se/~skorpio
  34.  
  35.